package com.lrkj.back.service.impl;

import java.util.List;
import java.util.Map;

import com.lrkj.back.entity.TbEmpOper;
import com.lrkj.back.mapper.TbEmpOperMapper;
import com.lrkj.back.service.TbEmpOperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.com.cbons.mamisay.parent.db.api.DBInterface;
import cn.com.cbons.mamisay.parent.exception.DBException;
import cn.com.cbons.mamisay.parent.service.base.ParentServiceImpl;

@Transactional
@Service("empOper")
public class TbEmpOperServiceImpl extends ParentServiceImpl<TbEmpOper> implements TbEmpOperService {

    @Autowired
    private TbEmpOperMapper tbEmpOperMapper;

    @Override
    protected DBInterface<TbEmpOper> getDao() throws DBException {
        return tbEmpOperMapper;
    }

    @Override
    public List<TbEmpOper> findAllTbEmpOper(Map<String, Object> map) throws DBException {
        return tbEmpOperMapper.findAllEmpOper(map);
    }

    @Override
    public Integer deleteByEmpId(Integer employeeId) throws DBException {
        return tbEmpOperMapper.deleteByEmpId(employeeId);
    }

}
